package com.service.imp;

import com.mapper.GongYiMapper_x;
import com.pojo.GongYi_x;
import com.service.GongYiService_x;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GongYiServiceXImp_x implements GongYiService_x {
    @Autowired
    private GongYiMapper_x gongYiMapperX;

    @Override
    public List<GongYi_x> selectAll() {
        return gongYiMapperX.selectAll();
    }

    @Override
    public List<GongYi_x> select1() {
        return gongYiMapperX.select1();
    }

    @Override
    public Integer add(GongYi_x gongYiX) {
        return gongYiMapperX.add(gongYiX);
    }

    @Override
    public Integer update(GongYi_x gongYiX) {
        return gongYiMapperX.update(gongYiX);
    }

    @Override
    public Integer delete(Integer id) {
        return gongYiMapperX.delete(id);
    }

    @Override
    public List<GongYi_x> select(Integer id, String title) {
        return gongYiMapperX.select(id, title);
    }
}
